﻿<?php
	// Se inicia el sistema de sesiones de php
	session_start();
?>
<html>
	<head>
		<title>Playlister</title>
		<?php require_once ('includeJS.php'); ?>
		<link rel="stylesheet" type="text/css" href="css/style.css" />
	</head>
	<body>
		<div align="center" id="user_div" class="main_div">
			<?php require_once ('user.php'); ?>
		</div>
		<div align="center" id="explorer_div" class="main_div">
			<?php require_once('explorer.php'); ?>
		</div>
		<div align="center" id="player_div" style="display:none>
			<?php require_once('player.php'); ?>
		</div>
		<div align="center" id="install_div">
			<button type="button" id="install_button">Install</button>
		</div>
		
		<script type="text/javascript">
			$("#install_button").click(function() {
				var data = {'o' : 'install'};
				$.get('app/db/ajaxInstall.php', data, function(recData) {
					$('#install_div').html('Success!');
				});
			});
		</script>
	</body>
</html>